import React from 'react'
import { BrowserRouter } from 'react-router-dom'
import { createRoot } from 'react-dom/client'
import { ConfigProvider } from 'antd'
import zhCN from 'antd/es/locale/zh_CN' // 引入中文包
import { MobxStoreProvider } from '@store/index'

import App from './App'
import 'antd/dist/antd.less'

createRoot(document.getElementById('root') as HTMLElement).render(
  <React.StrictMode>
    <MobxStoreProvider>
      <ConfigProvider locale={zhCN}>
        <BrowserRouter>
          <App />
        </BrowserRouter>
      </ConfigProvider>
      </MobxStoreProvider>
  </React.StrictMode>
)
